function formatNickname(nickname) {
    return nickname.slice(0, 1) + '****' + nickname.slice(-1)
}

function formatSpecs(specs) {
    return specs.map(spec => `${spec.name}：${spec.nameValue}`).join(' ')
}


export default {
    install(app) {
        app.config.globalProperties.$filters = {
            formatNickname,
            formatSpecs
        }
    }
}